<?php if(!defined('PATH_HD'))exit;
$db->exe("DROP TABLE IF EXISTS `ec_arc_flag`");
$db->exe("CREATE TABLE `ec_arc_flag` (
  `arc_aid` int(10) unsigned NOT NULL COMMENT '文章主键',
  `flag_fid` smallint(6) NOT NULL COMMENT '属性主键',
  PRIMARY KEY (`arc_aid`,`flag_fid`),
  KEY `fk_ec_arc_has_ec_flag_ec_flag1_idx` (`flag_fid`),
  KEY `fk_ec_arc_has_ec_flag_ec_arc1_idx` (`arc_aid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='文章属性多对多中间表'");
$db->exe('REPLACE INTO `ec_arc_flag`(`arc_aid`,`flag_fid`)VALUES (98,1)');
$db->exe('REPLACE INTO `ec_arc_flag`(`arc_aid`,`flag_fid`)VALUES (100,1)');
$db->exe('REPLACE INTO `ec_arc_flag`(`arc_aid`,`flag_fid`)VALUES (100,2)');
$db->exe('REPLACE INTO `ec_arc_flag`(`arc_aid`,`flag_fid`)VALUES (100,7)');
$db->exe('REPLACE INTO `ec_arc_flag`(`arc_aid`,`flag_fid`)VALUES (100,10)');

?>